hvm: For functions which translate virtual addresses to machine
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 27 Dec 2007 12:00:30 +0000 (12:00 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 27 Dec 2007 12:00:30 +0000 (12:00 +0000)
commit5e1b25eac4788497e8f8d6117794ae4803d3a4f5
tree141eb0687bdcd856bab4f1e2cf4c0b5b95e68be0
parent3658ceb342ae70e307509ad7554b24e8d9cd2571
hvm: For functions which translate virtual addresses to machine
addresses, page faults should only be raised when the gva->gfn
translation fails. These should be distinguished from gfn->mfn
translation failures.

The main effect of this is to change the behaviour of functions
derived from __hvm_copy(), which now returns a three-way enumeration,
and also can automatically inject #PF when the gva->gfn translation
fails.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/io.c
xen/arch/x86/hvm/platform.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/realmode.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/include/asm-x86/hvm/support.h